﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tasker.Composition;
using Tasker.Infrastructure;
using Tasker.Infrastructure.Services;

namespace Tasker.Services.Resolvers
{
    public class ServicesResolver : IDependencyResolver,
        IDependencyTypeResolver<IAccountService>,
        IDependencyTypeResolver<ITaskService>,
        IDependencyTypeResolver<IPictureManagerService>
    {
        public IAccountService Resolve()
        {
            return new AccountService();
        }

        ITaskService IDependencyTypeResolver<ITaskService>.Resolve()
        {
            return new TaskService();
        }

        IPictureManagerService IDependencyTypeResolver<IPictureManagerService>.Resolve()
        {
            return new PictureManagerService();
        }
    }
}
